home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / misc_src / cslib16b / include / csmess.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-01  |  2.2 KB  |  66 lines

  1. /***********************************************************************
  2.  
  3.                                        CSA Library, Version 1.6.b 
  4.                                          Released: March 2nd 1995 
  5.  
  6.        Set of functions to process messages.
  7.        All the library functions use these functions
  8.        to display warnings, errors etc..
  9.  
  10.                                            Copyright(c) 1994,1995 
  11.                                                            Combis 
  12.                                                   The Netherlands 
  13. ***********************************************************************/
  14.  
  15. #ifndef __CSMESS_H
  16. #define __CSMESS_H
  17.  
  18.  
  19. #ifndef __STDARG_H
  20.   #include "stdarg.h"
  21. #endif
  22. /*
  23. #ifndef __STDLIB_H
  24.   #include "stdlib.h"
  25. #endif
  26. */
  27. #ifndef __CSEDSTR_H
  28.   #include "csedstr.h"
  29. #endif
  30.  
  31. char *csmess_read(long error);
  32. void csmess_set_fun( void (* fun)(CSCHAR *));
  33. void csmess_reset_fun( void );
  34. void csmess_set_filename( CSCHAR *s);
  35. void csmess_reset_filename( void);
  36. void csmess_disp( CSCHAR *s);
  37. void csmess_on(void);
  38. void csmess_off(void);
  39. int  csmess_onoff(void);
  40. void csmess_onoff(int TrueOrFalse);
  41.  
  42.  
  43.  
  44. //////////////////////////////////////////////////////////////////////////
  45.  
  46.  
  47. //  This looks very clumsy, but these nice functions with a variable
  48. //  number of arguments doesn't seem to work for me.
  49.  
  50.  
  51. char *csmess(    char *s1=NULL, CSCHAR *s2=NULL, CSCHAR *s3=NULL, CSCHAR *s4=NULL, CSCHAR *s5=NULL, CSCHAR *s6=NULL);
  52. char *csmess_p( CSCHAR *s1=NULL, CSCHAR *s2=NULL, CSCHAR *s3=NULL, CSCHAR *s4=NULL, CSCHAR *s5=NULL, CSCHAR *s6=NULL);
  53. char *csmess(    long error,CSCHAR *s1, CSCHAR *s2, CSCHAR *s3=NULL, CSCHAR *s4=NULL, CSCHAR *s5=NULL);
  54. char *csmess_p( long error,CSCHAR *s1, CSCHAR *s2, CSCHAR *s3=NULL, CSCHAR *s4=NULL, CSCHAR *s5=NULL);
  55. char *csmess_p( long error,CSCHAR *s,long l);
  56. char *csmess_p( long error,long l);
  57. char *csmess_p( long error,int i);
  58. char *csmess_p( long error,CSCHAR c);
  59. char *csmess_p( long error,CSCHAR *s);
  60. inline CSCHAR *csmess_p( long error,uchar *s) { return csmess_p(error,(CSCHAR *)s); }
  61. char *csmess_p( long error,STR &s);
  62. char *csmess_p( long error,EDSTR &s);
  63. char *csmess_p( long error);
  64.  
  65. #endif
  66.